from cyaron import *

#predata
name = "word"

mxn = 0
mxs = 0

for i in range(1, 11):
    test_data = IO(file_prefix=name, data_id=i)
    # make data
    if i < 5:
        mxn = 5
        mxs = 10
    elif i < 9:
        mxn = 100
        mxs = 500
    else :
        mxn = 1000
        mxs = 5000
    n = randint(1, mxn)
    test_data.input_writeln(n)

    for i in range(n):
        ans = randint(0, 1)
        if ans == 0:
            s = String.random_sentence((1, mxs), word_separators="", first_letter_uppercase=False, sentence_terminators=None
                                   ,charset=["in", "input", "out", "output", "integer", "tiger","joker","one","int","kol","puton"])
        else:
            s = String.random_sentence((1, mxs), word_separators="", first_letter_uppercase=False, sentence_terminators=None
                                   ,charset=["in", "input", "out", "output", "integer", "tiger"])
        test_data.input_writeln(s)

    # writeline data
    
    # run data by shell
    test_data.output_gen("./"+name)